<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //构造函数:定义一个类
    function Person() {
      //私有属性
      var _this = this;
      //公有属性
      this.name = name;
      this.age = age;
    }

    //公有方法
    Person.prototype.study = function () {
      console.log("study reactjs");
    }

    //静态属性
    Person.do = "study";
  </script>
</body>

</html>